#ifndef V8UTIL_H
#define V8UTIL_H

#include <string>
//#include <v8.h>
	#ifndef ASSERT
	#define ASSERT(condition) assert(condition)
	#endif

using namespace std;
using namespace v8;


class V8Util
{
    public:
        V8Util();
        virtual ~V8Util();
  bool ExecuteString(Handle<String> source,
                          Handle<Value> name,
                          bool print_result,
                          bool report_exceptions) ;
void  ReportException(v8::TryCatch* try_catch) ;
const char* ToCString(const v8::String::Utf8Value& value);
    protected:
    private:
};

#endif // V8UTIL_H
